package com.baide.sanguanheyi.plc;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:plcconfig.properties"})
@ConfigurationProperties()
public class PlcConfig {
    private String obr1;
    private String obr2;
    private String obr3;

    private String plc;
    private int port;
    private int obr_num;
    private String xt_no;

    public String getXt_no() {
        return xt_no;
    }

    public void setXt_no(String xt_no) {
        this.xt_no = xt_no;
    }

    public int getObr_num() {
        return obr_num;
    }

    public void setObr_num(int obr_num) {
        this.obr_num = obr_num;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getObr1() {
        return obr1;
    }

    public void setObr1(String obr1) {
        this.obr1 = obr1;
    }

    public String getObr2() {
        return obr2;
    }

    public void setObr2(String obr2) {
        this.obr2 = obr2;
    }

    public String getObr3() {
        return obr3;
    }

    public void setObr3(String obr3) {
        this.obr3 = obr3;
    }

    public String getPlc() {
        return plc;
    }

    public void setPlc(String plc) {
        this.plc = plc;
    }
}
